#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

void Init(int arr[],int len)
{
	for (int i = 0; i < len; i++)
	{
		arr[i] = i + 1;
	}
}
void Print(int arr[], int len)
{
	for (int i = 0; i < len; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}
void Reverse(int arr[], int len)
{
	int left = 0;
	int right = len - 1;
	while (left < right)
	{
		int tep = arr[left];
		arr[left] = arr[right];
		arr[right] = tep;
		left++;
		right--;
	}
}

int main()
{
	int arr[20] = { 0 };
	int len = sizeof(arr) / sizeof(arr[0]);
	Init( arr, len);
	Print( arr, len);
	Reverse( arr, len);
	Print( arr, len);

	return 0;
}